import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:json_annotation/json_annotation.dart';

part 'part_time_job.g.dart';

//兼职岗位
@JsonSerializable()
class PartTimeJob {
  //职位名称
  String? jobName;

  //职位分类
  String? jobType;

  //分类名称
  String? jobTypeName;

  //期望类型
  String? expectType;

  //基本工资
  double? salary;

  //薪资单位
  String? salaryUnit;

  //薪资单位名称
  String? salaryUnitName;

  //报名人数
  int? applyNum;

  //性别要求
  int? sexReq;

  //结算周期
  String? cashPeriod;

  //工作场景
  String? workScene;

  //工作场景名称
  String? workSceneName;

  //职位描述
  String? jobDesc;

  //工作福利
  String? jobWelfare;

  //联系人
  String? contactPerson;

  //联系电话
  String? mobile;

  //微信号码
  String? wechat;

  //QQ号码
  String? qq;

  //电子邮箱
  String? email;

  //详细地址
  String? address;

  //省份代码
  int? province;

  //省份名称
  String? provinceName;

  //城市代码
  int? city;

  //城市名称
  String? cityName;

  //地区代码
  int? area;

  //地区名称
  String? areaName;

  //提供电话沟通
  String? offerMobile;

  //工作种类 0 短招 1 长招
  String? workSpecies;

  //工作日期
  String? workDate;

  //上班时间
  String? workTime;

  //限制上班时间
  String? timeLimit;

  //账号ID
  int? userId;

  //公司名称
  String? userName;

  //时间要求
  String? timeRequire;

  //一周上班天数
  String? weeklyWorkDay;

  //发布时间
  String? createTime;

  PartTimeJob(
      {this.jobName,
      this.jobType,
      this.jobTypeName,
      this.expectType,
      this.salary,
      this.salaryUnit,
      this.salaryUnitName,
      this.contactPerson,
      this.applyNum,
      this.sexReq,
      this.cashPeriod,
      this.workScene,
      this.workSceneName,
      this.workSpecies,
      this.workDate,
      this.workTime,
      this.wechat,
      this.email,
      this.qq,
      this.mobile,
      this.offerMobile,
      this.province,
      this.provinceName,
      this.area,
      this.city,
      this.cityName,
      this.address,
      this.timeRequire,
      this.areaName,
      this.timeLimit,
      this.weeklyWorkDay,
      this.jobWelfare,
      this.createTime,
      this.userName});

  factory PartTimeJob.fromJson(Map<String, dynamic> json) => _$PartTimeJobFromJson(json);

  Map<String, dynamic> toJson() => _$PartTimeJobToJson(this);
}
